package com.sunline.poc.oozie;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

@Component
public class ApplicationProperties {
    @Value("${oozieUrl}")
    private String oozieUrl;

    @Value("${krb5FilePath}")
    private String krb5FilePath;

    @Value("${hdfsNameNodeURI}")
    private String hdfsNameNodeURI;

    @Value("${jobTracker}")
    private String jobTracker;

    @Value("${job.retries}")
    private  Integer jobRetries;

    @Value("${job.retries.delay}")
    private Long jobRetriesDelay;

    public Long getJobRetriesDelay() {
        return jobRetriesDelay;
    }

    public void setJobRetriesDelay(Long jobRetriesDelay) {
        this.jobRetriesDelay = jobRetriesDelay;
    }

    public Integer getJobRetries() {
        return jobRetries;
    }

    public void setJobRetries(Integer jobRetries) {
        this.jobRetries = jobRetries;
    }

    public String getJobTracker() {
        return jobTracker;
    }

    public void setJobTracker(String jobTracker) {
        this.jobTracker = jobTracker;
    }

    public String getHdfsNameNodeURI() {
        return hdfsNameNodeURI;
    }

    public void setHdfsNameNodeURI(String hdfsNameNodeURI) {
        this.hdfsNameNodeURI = hdfsNameNodeURI;
    }

    public String getKrb5FilePath() {
        return krb5FilePath;
    }

    public void setKrb5FilePath(String krb5FilePath) {
        this.krb5FilePath = krb5FilePath;
    }

    public String getOozieUrl() {
        return oozieUrl;
    }

    public void setOozieUrl(String oozieUrl) {
        this.oozieUrl = oozieUrl;
    }
}
